<?php
//**Anti-spam image generator by Mark Rigby (c) 2003 All rights reserved**//
//Continue the session

session_start();

//Create a blank canvas for the image
$image=ImageCreate(175,35);
//

//Set the colours for use in the image - I've set $col1 to black and $col2 to red
$cola=ImageColorAllocate($image,112,128,144);   //To change colour alter the 3 numbers in the brackets
$colb=ImageColorAllocate($image,255,255,0); //see colourlist.txt for other colour options
//
// $cola=ImageColorAllocate($image,228,228,228);   //To change colour alter the 3 numbers in the brackets
// $colb=ImageColorAllocate($image,57,102,142); //see colourlist.txt for other colour options
//Set the background colour
ImageFill($image,0,0,$cola);
//

//Add the text to the image - the position of the text in the images is random
ImageString($image,5,rand(5,100),rand(0,20),$text,$colb);
//

//Make the image
Header ("Content-type: image/png");
ImagePng($image);
//

//Destroy the image
ImageDestroy($image);
//
?>